import request from '@utils/request'

export const getList = (data) => {
    return request.get(`/api/project/classstage/displaylist?class_id=${data?data:""}`)
}
export const classstageAddEdit = (data) => {
    return request.post(`/api/project/classstage/save`,data)
}
export const classstageDel = (data) => {
    return request.get(`/api/project/classstage/del?id=${data}`)
}
export const getPLanList = (data) => {
    return request.get(`/api/project/classstage/list?class_id=${data?data:""}`)
}
//标记需要评审的阶段
export const setStageStatus = (data) => {
    return request.get(`/api/project/classstage/setstatus?class_id=${data.class_id}&stage_id=${data.stage_id}&status=${data.status}`)
}

export default { getList, classstageAddEdit, classstageDel,getPLanList,setStageStatus }